package com.cmse.persistence.enmu;
/**
 * @author wulibin, exceptsky@gmail.com, 2012-3-13 下午7:21:26
 * 
 */
public enum FetchOrderType {
	CREATE_DESC(1,"createdAt", "desc"),
	CREATE_ASC(2,"createdAt", "asc"),
	LASTLOGIN_DESC(2,"lastLoginAt", "desc"),
	LASTLOGIN_ASC(2,"lastLoginAt", "asc"),
	NAME_ASC(3,"name", "asc");

	private int    index;
    private String key;
    private String method;
   

    private FetchOrderType(int index, String key, String method) {
    	this.index = index;
        this.method = method;
        this.key = key;
    }


	public int getIndex() {
		return index;
	}


	public void setIndex(int index) {
		this.index = index;
	}


	public String getKey() {
		return key;
	}


	public void setKey(String key) {
		this.key = key;
	}


	public String getMethod() {
		return method;
	}


	public void setMethod(String method) {
		this.method = method;
	}

  
}
